﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Automobile.service.Model;
using Automobile.service.DAL;
using System.Data;

namespace Automobile.service.BLL
{
   public class DocumentBll
    {
       DocumentDal dal = new DocumentDal();
        /// <summary>
        /// 显示商品库存信息
        /// </summary>
        /// <returns></returns>
        public List<DocumentModel> Document()
        {
            return dal.Document();
        }
        /// <summary>
        /// 添加商品库存信息
        /// </summary>
        /// <returns></returns>
        public int AddDocument(DocumentModel s)
        {
            return dal.AddDocument(s);
        }
        /// <summary>
        /// 删除商品库存信息
        /// </summary>
        /// <returns></returns>
        public int DeleDocument(int Document_Id)
        {
            return dal.DeleDocument(Document_Id);
        }

        /// <summary>
        /// 取单个商品库存信息
        /// </summary>
        /// <returns></returns>
        public DataTable GetDocument(string Document_Id)
        {
            return dal.GetDocument(Document_Id);   
        }

        /// <summary>
        /// 更新商品库存信息
        /// </summary>
        /// <param name="stu"></param>
        /// <returns></returns>
        public int UpdateDocument(DocumentModel s)
        {
            return dal.UpdateDocument(s);
        }
    }
}
